﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Results_Comparer
{
    public class TreeNode
    {
        // Fields
        public List<TreeNode> childs = new List<TreeNode>();
        public bool impnode;
        public string myRdfId;
        public string name;

        // Methods
        public TreeNode(string name, string rdfid)
        {
            this.myRdfId = rdfid;
            this.name = name;
            this.impnode = false;
        }

        public void AddChild(TreeNode childNode)
        {
            this.childs.Add(childNode);
        }

        public void UpdateNodeImportance(bool mynewimp)
        {
            this.impnode = mynewimp;
        }

        public void UpdateNodeRdfid(string mynewrdf)
        {
            this.myRdfId = mynewrdf;
        }
    }
}